<?php
    $data = $_FILES;

    //要进行处理，文件保存在硬盘上面
    $fileName =$data['lifephoto']['name'];
    $tmp = $data['lifephoto']['tmp_name'];
    //我要把它从服务器的一个临时位置存储到images目录下面
    move_uploaded_file($tmp,"./images/".$fileName);
    $url = "./images/".$fileName;
    $array = array("url"=>$url);
    echo json_encode($array);
?>